package com.ruoyi.app.controller;

import com.ruoyi.system.domain.TAboutUs;
import com.ruoyi.system.domain.TBanner;
import com.ruoyi.system.service.ITAboutUsService;
import com.ruoyi.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "小程序端-关于我们")
@RestController
@RequestMapping("/app/aboutUs")
public class AboutUsController {

    @Resource
    private ITAboutUsService itAboutUsService;

    @ApiOperation("关于我们")
    @PostMapping("/getAll")
    public AjaxResult<TAboutUs> getAll() {
        List<TAboutUs> tAboutUses = itAboutUsService.selectTAboutUsList(null);
        return AjaxResult.success(tAboutUses);
    }
}
